package com.showgood.vo;
import flash.utils.ByteArray;
import java.io.IOException;
public class ArmyVO extends BaseVO {
public int captain;
public String name;
public int staff;
public int x;
public int y;
public int nextx;
public int nexty;
public float duration;
@Override
public int getVid() { return 13; }
@Override public void pack(ByteArray b) throws IOException {
super.pack(b);
b.writeInt(this.captain);
b.writeUTF(this.name);
b.writeInt(this.staff);
b.writeInt(this.x);
b.writeInt(this.y);
b.writeInt(this.nextx);
b.writeInt(this.nexty);
b.writeFloat(this.duration);
}
@Override public void unpack(ByteArray b) throws IOException {
super.unpack(b);
this.captain = b.readInt();
this.name = b.readUTF();
this.staff = b.readInt();
this.x = b.readInt();
this.y = b.readInt();
this.nextx = b.readInt();
this.nexty = b.readInt();
this.duration = b.readFloat();
}
}
